<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no" />
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
            background-color: #f8f8f8;
        }
        .main ul li {
        	margin-bottom: 6px;
        }
        .main ul li:last-child {
        	margin-bottom: 0;
        }
        .main ul li .li_box {
        	background-color: #fff;
        }
        .main ul li .li_box .li_boxt {
        	border-bottom: 1px solid #e8e8e8;
        	padding: 14px 15px;
        }
        .main ul li .li_box .li_boxt .address {
        	font-size: 15px;
        	color: #333;
        	margin-bottom: 12px;
        }
        .main ul li .li_box .li_boxt .info {
        	font-size: 12px;
        	color: #999;
        }
        .main ul li .li_box .li_boxt .info .name {
        	margin-right: 8px;
        }
        .main ul li .li_box .li_boxb {
        	height: 33px;
        	line-height: 33px;
			color: #999;
			font-size: 12px;
			padding: 0 15px;
			display: -webkit-box;
			-webkit-box-align: center;
        }
        .main ul li .li_box .li_boxb input {
        	display: none;
        }
        .main ul li .li_box .li_boxb img {
        	height: 18px;
        	display: block;
        }
        .main ul li .li_box .li_boxb span {
			margin-left: 10px;
			display: block;
        }
    </style>
</head>
<body>
    <div class="main">
    	<ul>
    		<li>
    			<div class="li_box">
	    			<div class="li_boxt">
	    				<div class="address">泰翔商务楼泰翔商务楼泰翔商务楼</div>
	    				<div class="info">
	    					<span class="name">关先生</span>
	    					<span>13333333333</span>
	    				</div>
	    			</div>
	    			<div class="li_boxb" tapmode onclick="fnDefaultAddress(this);">
	    				<input type="checkbox" name="default_address">
	    				<img class="default_address_icon" src="../image/select_address_off.png">
	    				<span>当前默认地址</span>
	    			</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
	    			<div class="li_boxt">
	    				<div class="address">泰翔商务楼泰翔商务楼泰翔商务楼</div>
	    				<div class="info">
	    					<span class="name">关先生</span>
	    					<span>13333333333</span>
	    				</div>
	    			</div>
	    			<div class="li_boxb" tapmode onclick="fnDefaultAddress(this);">
	    				<input type="checkbox" name="default_address">
	    				<img class="default_address_icon" src="../image/select_address_off.png">
	    				<span>当前默认地址</span>
	    			</div>
    			</div>
    		</li>
    	</ul>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.js"></script>
<script type="text/javascript">
    apiready = function(){
        
    };

    function fnDefaultAddress(this_) {
        if ($(this_).children('input[name=default_address]').is(':checked')) {
            $('input[name=default_address]').prop('checked', false);
            $('.default_address_icon').attr('src', '../image/select_address_off.png');
        } else {
            $('input[name=default_address]').prop('checked', false);
            $('.default_address_icon').attr('src', '../image/select_address_off.png');
            $(this_).children('input[type=checkbox]').prop('checked', true);
            $(this_).children('.default_address_icon').attr('src', '../image/select_address_on.png');
        }
    }
</script>
</html>